package com.example.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 入库单
 */
@Data
@TableName("out_form_")
@AllArgsConstructor
@NoArgsConstructor
public class OutForm implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "my_id_", type = IdType.ASSIGN_ID)
    private String myId;

    /**
     * 物资ID
     */
    @TableField("materials_id_")
    private String materialsId;

    /**
     * 物资名
     */
    @TableField("materials_name_")
    private String materialsName;

    /**
     * 物资生产厂家
     */
    @TableField("materials_manufacturer_")
    private String materialsManufacturer;

    /**
     * 物资单价
     */
    @TableField("materials_price_")
    private Double materialsPrice;

    /**
     * 取出/借用数数量
     */
    @TableField("out_amount_")
    private Integer outAmount;

    /**
     * 借出部门
     */
    @TableField("out_department_")
    private String outDepartment;

    /**
     * 借出人
     */
    @TableField("out_personnel_")
    private String outPersonnel;

    /**
     * 借出人电话
     */
    @TableField("out_personnel_phone_")
    private String outPersonnelPhone;

    /**
     * 借出人单位
     */
    @TableField("out_personnel_employer_")
    private String outPersonnelEmployer;

    /**
     * 负责人
     */
    @TableField("principal_")
    private String principal;

    /**
     * 操作员
     */
    @TableField("operator_")
    private String operator;

    /**
     * 总金额
     */
    @TableField("aggregate_")
    private Double aggregate;

    /**
     * 出库类型：取出2  借出待审核0  借出审核通过1 借出审核不通过-1
     */
    @TableField("status_")
    private String status;

    /**
     * 操作时间
     */
    @TableField("date_")
    private Date date;
}
